﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ OutputCache Duration="30" VaryByParam="*" %>
<%@ Register Src="Controls/WebContent.ascx" TagName="WebContent" TagPrefix="uc1" %>
<asp:Content ContentPlaceHolderID="HeaderContentPlaceHoder" runat="server" ID="HeaderSection">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <asp:ListView ID="SymbolsListView" runat="server" DataSourceID="SymbolsDataSource">
        <ItemTemplate>
            <li><a href="<%# "page.aspx?symbol=" + XPath("@index")  + " " + XPath("@symbol") + "&company=" + XPath("@companyname").ToString().Replace("&"," ")  %>">
                <%# XPath("@symbol")  %></a> - <a href="<%# "page.aspx?symbol=" + XPath("@index")  + " " + XPath("@symbol") + "&company=" + XPath("@companyname").ToString().Replace("&"," ") %>">
                    <%# XPath("@companyname")  %></a> </li>
        </ItemTemplate>
        <EmptyDataTemplate>
            No data was returned.
        </EmptyDataTemplate>
        <LayoutTemplate>
            <ul>
                <li id="itemPlaceHolder" runat="server"></li>
            </ul>
            <asp:DataPager ID="TrendsDataPager" QueryStringField="page" PageSize="50" PagedControlID="SymbolsListView"
                runat="server">
                <Fields>
                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                        ShowPreviousPageButton="False" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                        ShowPreviousPageButton="False" />
                </Fields>
            </asp:DataPager>
        </LayoutTemplate>
    </asp:ListView>
    <asp:XmlDataSource ID="SymbolsDataSource" runat="server" DataFile="~/Symbols.xml"
        XPath="companies/company"></asp:XmlDataSource>
</asp:Content>
